package ch06.sz;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class SpringTest {
    @Test
    public void Test1(){
        ApplicationContext context = new ClassPathXmlApplicationContext("dh.xml");
        Hzw hzw = (Hzw) context.getBean("hzw");
        System.out.println(hzw.getHzw());
        Zgl hywc = (Zgl) context.getBean("hywc");
        System.out.println(hywc.getHywc());
    }
}
